<?php
namespace Json\Controller;
use Think\Controller;
class MatchController extends Controller {
  public function matchlistJson(){
       
       $use= $this->users=M('match')->select();
   echo json_encode($use);
      } 
  
    public function matchOneJson($id){
       
       $match = M('match') -> where("matchid='$id'") -> find();
       echo json_encode($match);
      } 

}